﻿@using ASP.Example.Routing.Controllers

@model List<Product>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<table>
    <tr>
        <th>ID</th>
        <th>Product Name</th>
        <th>Category</th>
    </tr>
    @foreach (Product item in Model)
    {
        <tr>
            <td>@item.ID</td>
            <td>@item.Name</td>
            <td>@item.CategoryName</td>
        </tr>
    }
</table>
